package com.example.demo.mapper.process;


import com.example.demo.dto.process.AddCourseDto;
import com.example.demo.entity.process.Course;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:龙宝
 * Date:2023-03-31
 * Time:18:38
 */
@Mapper
public interface CourseMapper {
    Integer add(AddCourseDto addCourseDto);

    List<Course> getCourseAll();
    List<Course> getCourseByClassId(Integer class_id);
    List<Course> getCourseByClassIdAndSemester(Integer class_id, Integer semester);
    Course getCourseById(Integer course_id);
}
